package cn.dakaqi.services;

import cn.dakaqi.entities.Platform;
import cn.dakaqi.utils.exception.ServiceRuntimeException;
import org.springframework.data.domain.Page;

/**
 * Created by chunyang on 2016/5/29.
 */
public interface PlatformService
{
    void save(Platform platform)throws ServiceRuntimeException;
    void update(Platform platform)throws ServiceRuntimeException;
    void updateStatus(Long id, int status)throws ServiceRuntimeException;
    void updateStatus(String code, int status)throws ServiceRuntimeException;
    Page<Platform> findAll(int pageNumber, int status)throws ServiceRuntimeException;
    Platform findOne(Long id)throws ServiceRuntimeException;
    Platform findByCode(String code)throws ServiceRuntimeException;
}
